package com.rs2hd.content;

import com.rs2hd.event.Event;
import com.rs2hd.model.Player;
import com.rs2hd.model.World;

/**
 * Handles player+NPC healing.
 *
 * @author Graham
 */
public class HealEvent extends Event {

    /**
     * Creates the server-wide heal event to run every 60000ms (1m).
     */
    public HealEvent() {
        super(60000);
    }

    @Override
    public void execute() {
	try {
        for (Player p : World.getInstance().getPlayerList()) {
            p.heal(1);
        }
    } catch (Exception e) {
	}
	}

}
